#define _CRT_SECURE_NO_WARNINGS

#include<vector>
#include"myhash.hpp"
#include<set>
#include<iostream>


int main()
{
	myhash::hash<int, int>h;
	vector<int> v = { 1,1,4,82,386,32,667,237,33 ,32432,43546,2,4,6,245,452356,23123,63423,3234,2323254,232354,2323,254324,2324,322,4};
	int i = 0;
	for (auto e : v)
	{
		i++;
		h.insert({e,i});
	}
	for (auto e : v)
	{
		pair<int,int>*p=h.find(e);
		cout << p->first << endl;
	}
	h.erase(4);
	/*set<int>s(v.begin(), v.end());
	if (h.size() == s.size())
		cout << 10000 << endl;*/
}